import type { ColumnsType } from 'antd/es/table'
import type { DescriptionsProps } from 'antd'

// 级联选项数据 大区->省份->城市
interface Option {
    value: string | number
    label: string
    children?: Option[]
}

interface Product {
    label: string
    value: string | number
}
interface DataType {
    key: React.Key
    userName: string
    age: number
    address: string
}

export const orginList: Option[] = [
    {
        value: '1000',
        label: '华北大区',
        children: [
            {
                value: '1001',
                label: '河北',
                children: [
                    {
                        value: '1002',
                        label: '昌黎',
                    },
                ],
            },
        ],
    },
    {
        value: '2000',
        label: '北销大区',
        children: [
            {
                value: '2001',
                label: '北京',
                children: [
                    {
                        value: '2002',
                        label: '通州区',
                    },
                ],
            },
        ],
    },
]

// 申报产品
export const productList: Product[] = [
    { label: '全部', value: 'all' },
    { label: '产品A', value: 'productA' },
    { label: '产品B', value: 'productB' },
    { label: '产品C', value: 'productC' },
]

export const dearleColumns: ColumnsType<DataType> = [
    {
        title: 'Name',
        dataIndex: 'username',
    },
    {
        title: 'Age',
        dataIndex: 'age',
    },
    {
        title: 'Address',
        dataIndex: 'address',
    },
]

export const detailInfo: DescriptionsProps['items'] = [
    {
        key: '1',
        label: '申报单位',
        children: '',
    },
    {
        key: '2',
        label: '申报截止时间',
        children: '',
    },
    {
        key: '3',
        label: '申报状态',
        children: '',
    },
    {
        key: '4',
        label: '经销商数量',
        children: '',
    },
    {
        key: '5',
        label: '申报SKU种类',
        children: '',
    },
    {
        key: '6',
        label: '申报数量',
        children: '',
    },
]
